import request  from "@/utils/request";

/* 获取验证码 */
export function getCode() {
  return request({
    url:"/v1/captchas",
    method:'post',
  })
}

/* 登录 */
export function login(data){
  return request({
    url:'/v2/login',
    method:'post',
    data
  })
}

/* 修改密码 */
export function changePassword(data){
  return request({
    url:'/v2/changepassword',
    method:'post',
    data
  })
}